﻿using NUnit.Framework;

namespace IAD13.fromTDDtoBDD.BDD.given_an_account.with_100_EUR_of_balance
{
    public class when_I_withdrawal_80_EUR : with_balance_greater_than_zero
    {
        protected override void When()
        {
            sut.Withdrawal(Amount.OfEuro(80));
        }

        [Then]
        public void It_should_return_20_EUR_of_balance()
        {
            Assert.AreEqual(Amount.OfEuro(20),sut.Balance());
        }
    }
}